package com.xinqi.modules.chat.chat.official.client;

import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.R;
import com.xinqi.modules.chat.chat.official.dto.req.ChatRemindContentBatchCreateDTO;
import com.xinqi.modules.chat.chat.official.dto.req.ChatRemindContentCreateDTO;
import com.xinqi.modules.chat.chat.official.factory.ChatRemindContentFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * 新奇提醒消息记录表客户端
 *
 * @author: yyzhen
 * @date: 2023/05/06
 */
@FeignClient(value = ServiceNameConstants.XQ_CHAT, fallbackFactory = ChatRemindContentFallbackFactory.class)
public interface ChatRemindContentClient {

    /**
     * 新增 -- 新奇提醒消息记录
     *
     * @param dto
     * @return
     */
    @PostMapping("/inner/remind-content/insert")
    public R<Boolean> insert(@RequestBody ChatRemindContentCreateDTO dto);

    /**
     * 批量新增 -- 新奇提醒消息记录
     *
     * @param dto
     * @return
     */
    @PostMapping("/inner/remind-content/batchInsert")
    public R<Boolean> batchInsert(@RequestBody ChatRemindContentBatchCreateDTO dto);

}
